//	mpsf.event.handler.cpp

#include <mpsf.event.h>

void *evthand_class;
t_symbol *ps_done;

//extern void evtdisp_handlerdone(t_evtdisp *x, t_evthand *hnd);

__declspec(dllexport) void main(void)
{
	setup((t_messlist**)&evthand_class, (method)evthand_new,
		(method)evthand_free, (short)sizeof(t_evthand), (method)0L, A_SYM, A_LONG, 0);
	// add messages
	addbang((method)evthand_bang);
	ps_done = gensym("done");
}

void *evthand_new(t_symbol *evtname, long order)
{
	t_evthand *x;
	//...
	return NULL;
}

void evthand_free(t_evthand *x)
{
	//free
}

void evthand_bang(t_evthand *x)
{
	//notify dispatcher that handler is done
	//evtdisp_handlerdone(x->_disp, x);
}

void evthand_cancel(t_evthand *x)
{
	//...
}

